<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link href="../lib/bootstrap-3.3.7.css" rel="stylesheet">
    <style>
        .sign {
            width: 700px;
            height: 360px;
            position: absolute;
            top: 50%;
            left: 50%;
            margin-top: -180px;
            margin-left: -350px;
            background-color: #d9534f;
            padding: 0 100px;
        }
        .sign h3{
            text-align: center;
            padding: 30px 0;
            font-weight: 700;
            color: white;
        }
        .sign .form-horizontal label{
            color: #fff;
        }
    </style>
    <script src="../lib/vue-2.4.0.js"></script>
    <script src="../node_modules/axios/dist/axios.js"></script>
</head>
<body>
<div class="sign" id="dv">
    <h3>注册</h3>
    <form class="form-horizontal">
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">用户名</label>
            <div class="col-sm-10">
                <input type="text" class="form-control" id="inputEmail3" placeholder="请输入用户名" v-model="name">
            </div>
        </div>
        <div class="form-group">
            <label for="inputPassword3" class="col-sm-2 control-label">密码</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="inputPassword3" placeholder="请输入密码" v-model="password">
            </div>
        </div>
        <div class="form-group">
            <label for="input" class="col-sm-2 control-label">确认密码</label>
            <div class="col-sm-10">
                <input type="password" class="form-control" id="input" placeholder="请输入密码" v-model="passwordAgain">
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="button" class="btn btn-primary " @click="register">注册</button>
                <a type="button" class="btn btn-success " href='sign.html'>已有账号-登录</a>
            </div>
        </div>
    </form>
</div>
<script src="../js/register.js"></script>
</body>
</html>